package com.AuthServer.pojo.form;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class LoginForm {
    @NotNull(message = "工号不能为null")
    @NotEmpty(message = "工号不能为空")
    private String userId;
    @NotNull(message = "密码不能为null")
    @NotEmpty(message = "密码不能为空")
    @Size(min = 6, max = 18, message = "密码在6-14位之间")
    private String password;
    @NotNull(message = "验证码不能为null")
    @NotEmpty(message = "验证码不能为空")
    @Size(min = 4, max = 4, message = "验证码为4位有效字符")
    private String graphicalCaptcha;
}
